package com.bdmc.device.service;

import com.bdmc.device.domain.DevFacilityRealtime;
import com.bdmc.device.domain.vo.DevFacilityRealtimeVo;
import com.bdmc.device.domain.bo.DevFacilityRealtimeBo;
import com.bdmc.common.core.mybatisplus.core.IServicePlus;
import com.bdmc.common.core.page.TableDataInfo;
import com.bdmc.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 满溢设备实时数据Service接口
 *
 * @author bdmc
 * @date 2022-03-22
 */
public interface IDevFacilityRealtimeService extends IServicePlus<DevFacilityRealtime, DevFacilityRealtimeVo> {
	/**
	 * 查询单个
	 * @return
	 */
	DevFacilityRealtimeVo queryById(Integer realtimeId);

	/**
	 * 查询列表
	 */
    TableDataInfo<DevFacilityRealtimeVo> queryPageList(DevFacilityRealtimeBo bo, PageQuery pageQuery);

	/**
	 *分页查询列表
	 */
	TableDataInfo<DevFacilityRealtimeVo> mySelectPage(DevFacilityRealtimeBo bo, PageQuery pageQuery);

	/**
	 * 查询列表
	 */
	List<DevFacilityRealtimeVo> queryList(DevFacilityRealtimeBo bo);

	/**
	 * 根据新增业务对象插入满溢设备实时数据
	 * @param bo 满溢设备实时数据新增业务对象
	 * @return
	 */
	Boolean insertByBo(DevFacilityRealtimeBo bo);

	/**
	 * 根据编辑业务对象修改满溢设备实时数据
	 * @param bo 满溢设备实时数据编辑业务对象
	 * @return
	 */
	Boolean updateByBo(DevFacilityRealtimeBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Integer> ids, Boolean isValid);

	/**
	 * 漫溢设备实时数据
	 * @param facilityRealtime 查询条件
	 * @return 返回数据
	 */
	List<DevFacilityRealtimeVo> selectDevFacilityRealtimeList(DevFacilityRealtimeBo facilityRealtime);

    Map<String, Object> countHomeFacStatus();


}
